{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "d08b5879",
   "metadata": {},
   "source": [
    "---\n",
    "\n",
    "* 日期：2023-11-20\n",
    "* 课程：python\n",
    "* week12\n",
    "\n",
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dce3c00e",
   "metadata": {},
   "source": [
    "# 1. 字典的创建\n",
    "> 1. 按照数据结构的形态创建，[,],(,),{,}\n",
    "> 2. 按照数据结构的方法创建：list(),tuple(),set(),dict()\n",
    "> 3. 根据自身的性质创建：\n",
    ">> A. [],append\n",
    ">> B. value1,value2,value3\n",
    ">> C. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "bc99b469",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': 1178}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "person = {\"name\": \"Jessa\", \"country\": \"USA\", \"telephone\": c}\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "ffa3575e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': 1178}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "#方法二：\n",
    "person = dict(\n",
    "    name = \"Jessa\",\n",
    "    country = \"USA\",\n",
    "    telephone = 1178\n",
    ")\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "662d88d0",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': 'telephone'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法三：字典新增\n",
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"telephone\"\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "643708cd",
   "metadata": {},
   "source": [
    "# 2.字典的一般方法"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6600b0a0",
   "metadata": {},
   "source": [
    "## 1. 查询\n",
    "\n",
    "> in方法：查询dict中是否存在其关键字key"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "487a08b5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    " 'name' in person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "067f0dd4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"Jessa\" in person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "e458d6a2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jessa'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.get( 'name')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "f7445879",
   "metadata": {},
   "outputs": [],
   "source": [
    "person.get( 'Jessa')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "2d7c7cad",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Jessa\n"
     ]
    }
   ],
   "source": [
    "keys =  'name'\n",
    "if  'name' in person:\n",
    "    person.get( 'name')\n",
    "    print(person.get( keys)) "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "551b67d9",
   "metadata": {},
   "source": [
    "# 2.字典的item方法(关于字典的循环)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "ea1c12f3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_items([('name', 'Jessa'), ('country', 'USA'), ('telephone', 'telephone')])"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.items()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "96af7749",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name\n",
      "country\n",
      "telephone\n"
     ]
    }
   ],
   "source": [
    "# 循环一个元素得到的结果是key\n",
    "for i in person:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "761690fc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name Jessa\n",
      "country USA\n",
      "telephone telephone\n"
     ]
    }
   ],
   "source": [
    "for k,v in person.items():\n",
    "    print(k,v)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "9a71800a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'小明': 80, '小红': 85, 'Jessa': 95}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 案例\n",
    "python_成绩 = {\n",
    "    \"小明\": 80,\n",
    "     \"小红\": 85,\n",
    "     \"Jessa\": 95\n",
    "    \n",
    "}\n",
    "python_成绩"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "bb0f9ad4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Jessa 95\n"
     ]
    }
   ],
   "source": [
    "for k,v in python_成绩.items():\n",
    "    if v > 90:\n",
    "        print(k,v)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d1124152",
   "metadata": {},
   "source": [
    "# 3. 字典的keys，values方法\n",
    "> 1. keys:可以已查看所有关键词，大致了解下有哪些属性\n",
    "> 2. values：可以查看所有的结果，大致了解下结果的特征"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "4a563f5f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['name', 'country', 'telephone'])"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "e0c306c3",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "664c9a2e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'args': {},\n",
       " 'headers': {'Accept': '*/*',\n",
       "  'Accept-Encoding': 'gzip, deflate, br',\n",
       "  'Host': 'httpbin.org',\n",
       "  'User-Agent': 'python-requests/2.31.0',\n",
       "  'X-Amzn-Trace-Id': 'Root=1-655b4c45-17205b74365e7b821527f983'},\n",
       " 'origin': '120.85.43.84',\n",
       " 'url': 'https://httpbin.org/get'}"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r = requests.get(\"https://httpbin.org/get\")\n",
    "results = r.json()\n",
    "results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "8e43f0e0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['args', 'headers', 'origin', 'url'])"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "a34f61e9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['Accept', 'Accept-Encoding', 'Host', 'User-Agent', 'X-Amzn-Trace-Id'])"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results['headers'].keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "5535ba33",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_values(['Jessa', 'USA', 'telephone'])"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.values()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "915fdfa1",
   "metadata": {},
   "source": [
    "# 4. 字典的删除：pop"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "cf84150c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"1178\"\n",
    "print(person)\n",
    "print(type(person))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "399a7504",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 一般情况下，所有的数据做删除操作时，都会有备份的操作\n",
    "person_备份 = person.copy()\n",
    "person_备份"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "26958755",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'telephone': '1178'}"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "if \"country\" in person:\n",
    "    person.pop(\"country\")\n",
    "person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "2ff2f375",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person_备份"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "d1172698",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'telephone': '1178'}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "50977af2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('telephone', '1178')"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.popitem()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "cf4fc5aa",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa'}"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dc5b5ac8",
   "metadata": {},
   "source": [
    "# 4. 关于字典的特殊（高级）用法\n",
    "> 1. fromkeys\n",
    "> 2. setdefault"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "id": "5acf9ffd",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"1178\"\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "id": "459ba1cc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function fromkeys:\n",
      "\n",
      "fromkeys(iterable, value=None, /) method of builtins.type instance\n",
      "    Create a new dictionary with keys from iterable and values set to value.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(person.fromkeys)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "id": "4ddb5302",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 我们可以创建一个字典，字典的value 可以自定义（初始化）\n",
    "\n",
    "name_list = [\"Marry\",\"jack\",\"年少的我\",\"00后的时代\"]\n",
    "my_world = {}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "id": "fd60cdf1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': 10, 'jack': 10, '年少的我': 10, '00后的时代': 10}"
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "my_world.fromkeys(name_list,10)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4e4a1338",
   "metadata": {},
   "source": [
    "## 4.2 setdefault()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "id": "1b3b7b01",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'活泼开朗，非常有主见'"
      ]
     },
     "execution_count": 69,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict = {\n",
    "    'Marry':'活泼开朗，非常有主见',\n",
    "    'jack':'内向，独立'\n",
    "}\n",
    "tinydict.setdefault('Marry',\"胸心狭隘，斤斤计较\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "62393f10",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '活泼开朗，非常有主见', 'jack': '内向，独立'}"
      ]
     },
     "execution_count": 70,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ee27a938",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "id": "6097079d",
   "metadata": {},
   "outputs": [],
   "source": [
    "tinydict['John'] = \"胸心狭隘，斤斤计较\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "id": "40fdb991",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '活泼开朗，非常有主见', 'jack': '内向，独立', 'John': '胸心狭隘，斤斤计较'}"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a7730b75",
   "metadata": {},
   "source": [
    "# 5. 实践\n",
    "\n",
    "> 1. keys有哪些？\n",
    "> 2. roads 有哪些\n",
    "> 3. name 有哪些\n",
    "> 4. direction 为北的name 有哪些？\n",
    "> 5. 有tel的建筑(name)有哪些\n",
    "> 6. tyoe 为\"餐饮服务\"有哪些？\n",
    "> 7. distance 为\"餐饮服务\"有哪些？\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "bff37dc0",
   "metadata": {},
   "outputs": [],
   "source": [
    "geo_nfu = {\"status\":\"1\",\"regeocode\":{\"roads\":[{\"id\":\"020F49F0050461206\",\"location\":\"113.678,23.6284\",\"direction\":\"北\",\"name\":\"博学路\",\"distance\":\"7.63232\"},{\"id\":\"020F49F0050462229\",\"location\":\"113.679,23.6245\",\"direction\":\"北\",\"name\":\"老虎形街\",\"distance\":\"445.159\"},{\"id\":\"020F49F005046601453\",\"location\":\"113.677,23.6347\",\"direction\":\"南\",\"name\":\"中山路\",\"distance\":\"712.706\"}],\"roadinters\":[{\"second_name\":\"中山路\",\"first_id\":\"020F49F0050461206\",\"second_id\":\"020F49F005046601453\",\"location\":\"113.676745,23.634493\",\"distance\":\"691.177\",\"first_name\":\"博学路\",\"direction\":\"南\"}],\"formatted_address\":\"广东省广州市从化区温泉镇博学路广州南方学院\",\"addressComponent\":{\"city\":\"广州市\",\"province\":\"广东省\",\"adcode\":\"440117\",\"district\":\"从化区\",\"towncode\":\"440117100000\",\"streetNumber\":{\"number\":\"24号\",\"location\":\"113.677267,23.629149\",\"direction\":\"西北\",\"distance\":\"129.943\",\"street\":\"博学路\"},\"country\":\"中国\",\"township\":\"温泉镇\",\"businessAreas\":[[]],\"building\":{\"name\":[],\"type\":[]},\"neighborhood\":{\"name\":[],\"type\":[]},\"citycode\":\"020\"},\"aois\":[{\"area\":\"530435.909488\",\"type\":\"141201\",\"id\":\"B00140MR9A\",\"location\":\"113.679240,23.632576\",\"adcode\":\"440117\",\"name\":\"广州南方学院\",\"distance\":\"0\"}],\"pois\":[{\"id\":\"B00140MR9A\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.450402\",\"name\":\"广州南方学院\",\"location\":\"113.679240,23.632576\",\"distance\":\"470.34\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFK8J7XY\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.233244\",\"name\":\"广州南方学院(东南门)\",\"location\":\"113.678689,23.628304\",\"distance\":\"44.279\",\"tel\":[],\"type\":\"通行设施;临街院门;临街院门\"},{\"id\":\"B0FFHRJDM9\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"中大南方学院南门1号\",\"poiweight\":\"0.256152\",\"name\":\"中南公寓\",\"location\":\"113.680340,23.627566\",\"distance\":\"231.223\",\"tel\":\"13711245345\",\"type\":\"商务住宅;住宅区;住宅小区\"},{\"id\":\"B0H0M9NO43\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.292147\",\"name\":\"广州南方学院南方湖观景台\",\"location\":\"113.679464,23.630429\",\"distance\":\"252.022\",\"tel\":[],\"type\":\"风景名胜;风景名胜;观景点\"},{\"id\":\"B0FFHC4XU0\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道886号\",\"poiweight\":\"0.191595\",\"name\":\"广州南方学院学术交流中心\",\"location\":\"113.680066,23.630242\",\"distance\":\"270.76\",\"tel\":[],\"type\":\"科教文化服务;会展中心;会展中心\"},{\"id\":\"B0FFKP838K\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路25号\",\"poiweight\":\"0.191742\",\"name\":\"教学楼3号(外国语学院)\",\"location\":\"113.677247,23.630947\",\"distance\":\"298.093\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFG4TAF2\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇乌土村松浪队5号(近博学路)\",\"poiweight\":\"0.237309\",\"name\":\"广州南方公寓\",\"location\":\"113.678983,23.627778\",\"distance\":\"102.617\",\"tel\":\"13622768437\",\"type\":\"住宿服务;旅馆招待所;旅馆招待所\"},{\"id\":\"B0FFKP7GY5\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.218221\",\"name\":\"广州南方学院3号实验楼\",\"location\":\"113.678650,23.630612\",\"distance\":\"244.566\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0GKYRKNUA\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇平岗村乌土平岗街25号(中南公寓旁)\",\"poiweight\":\"0.209893\",\"name\":\"乐妍茶(中大店)\",\"location\":\"113.680097,23.627643\",\"distance\":\"205.173\",\"tel\":\"18028862548\",\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0H33OZ7BU\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.191148\",\"name\":\"广州南方学院学术报告厅\",\"location\":\"113.678698,23.631219\",\"distance\":\"312.056\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0JRKNVEFY\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号\",\"poiweight\":\"0.209894\",\"name\":\"喜茶(广州南方学院店)\",\"location\":\"113.679905,23.630533\",\"distance\":\"285.72\",\"tel\":[],\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0HGD588HJ\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院4号教学楼\",\"location\":\"113.677461,23.630578\",\"distance\":\"252.08\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0H1XKYTYG\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.198742\",\"name\":\"广州南方学院西区篮球场\",\"location\":\"113.677741,23.629552\",\"distance\":\"135.401\",\"tel\":[],\"type\":\"体育休闲服务;运动场馆;篮球场馆\"},{\"id\":\"B0HGDU76L2\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院2号实验楼\",\"location\":\"113.678327,23.630969\",\"distance\":\"281.377\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0IB2GMPW4\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005\",\"poiweight\":\"0.218331\",\"name\":\"古茗(南方学院店)\",\"location\":\"113.680105,23.630681\",\"distance\":\"311.024\",\"tel\":\"13717659301;18027267535\",\"type\":\"餐饮服务;休闲餐饮场所;休闲餐饮场所\"},{\"id\":\"B0I12780ZU\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"内部地面停车场\",\"poiweight\":\"0.203102\",\"name\":\"内部地面停车场(出入口)\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;停车场出入口\"},{\"id\":\"B0I1276BCM\",\"direction\":\"东南\",\"businessarea\":[],\"address\":[],\"poiweight\":\"0.257239\",\"name\":\"内部地面停车场\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;专用停车场\"},{\"id\":\"B0H25SMRKP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.263595\",\"name\":\"广州南方学院大礼堂\",\"location\":\"113.680076,23.631502\",\"distance\":\"386.65\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"BV11417822\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"从15路从20路\",\"poiweight\":\"0.400088\",\"name\":\"南方学院后门总站(公交站)\",\"location\":\"113.679280,23.627201\",\"distance\":\"171.243\",\"tel\":[],\"type\":\"交通设施服务;公交车站;公交车站相关\"},{\"id\":\"B0FFK0MZII\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院后门润泰超市一楼\",\"poiweight\":\"0.10175\",\"name\":\"街电(尚千谷中大南方店)\",\"location\":\"113.680254,23.627804\",\"distance\":\"213.132\",\"tel\":[],\"type\":\"生活服务;共享设备;充电宝\"},{\"id\":\"B0HRV1D5FP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.191158\",\"name\":\"广州南方学院博物馆\",\"location\":\"113.679624,23.631631\",\"distance\":\"380.463\",\"tel\":[],\"type\":\"科教文化服务;博物馆;博物馆\"},{\"id\":\"B0FFKMSV6B\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.232574\",\"name\":\"广州南方学院西学楼2号楼\",\"location\":\"113.675891,23.630025\",\"distance\":\"300.564\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFKP81F0\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"博学路与中山路交叉口南340米\",\"poiweight\":\"0.191742\",\"name\":\"教学楼1号(文学与传媒学院)\",\"location\":\"113.676866,23.631736\",\"distance\":\"393.93\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0HGDU99RM\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院内\",\"poiweight\":\"0.257947\",\"name\":\"广州南方学院图书馆\",\"location\":\"113.679303,23.632322\",\"distance\":\"444.196\",\"tel\":\"020-61787368;020-61787371\",\"type\":\"科教文化服务;图书馆;图书馆\"},{\"id\":\"B0HGDU92JD\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院1号教学楼\",\"location\":\"113.676968,23.631720\",\"distance\":\"388.57\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFH6K3U9\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇温泉大道882号广州南方学院H7栋1-5层\",\"poiweight\":\"0.254885\",\"name\":\"广州中大南方招待所\",\"location\":\"113.676330,23.631332\",\"distance\":\"378.102\",\"tel\":\"020-61787222\",\"type\":\"住宿服务;住宿服务相关;住宿服务相关\"},{\"id\":\"B0H1YMW8PH\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇中山大学南方学院博学路6号西区食堂首层\",\"poiweight\":\"0.214311\",\"name\":\"肯德基(从化南方学院店)\",\"location\":\"113.676031,23.631594\",\"distance\":\"419.018\",\"tel\":\"4009200715\",\"type\":\"餐饮服务;快餐厅;快餐厅\"},{\"id\":\"B0HGD592BJ\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院综合楼\",\"location\":\"113.680109,23.631605\",\"distance\":\"398.334\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0HGD58NF8\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院新综合楼2层\",\"poiweight\":\"0.191229\",\"name\":\"广州南方学院达人书院\",\"location\":\"113.679041,23.632392\",\"distance\":\"446.366\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0JBGSFI8C\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.115716\",\"name\":\"广州南方学院西学楼1号楼\",\"location\":\"113.675570,23.630596\",\"distance\":\"365.742\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"}]},\"info\":\"OK\",\"infocode\":\"10000\"}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "3f9dd71b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461206',\n",
       "    'location': '113.678,23.6284',\n",
       "    'direction': '北',\n",
       "    'name': '博学路',\n",
       "    'distance': '7.63232'},\n",
       "   {'id': '020F49F0050462229',\n",
       "    'location': '113.679,23.6245',\n",
       "    'direction': '北',\n",
       "    'name': '老虎形街',\n",
       "    'distance': '445.159'},\n",
       "   {'id': '020F49F005046601453',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '南',\n",
       "    'name': '中山路',\n",
       "    'distance': '712.706'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461206',\n",
       "    'second_id': '020F49F005046601453',\n",
       "    'location': '113.676745,23.634493',\n",
       "    'distance': '691.177',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117100000',\n",
       "   'streetNumber': {'number': '24号',\n",
       "    'location': '113.677267,23.629149',\n",
       "    'direction': '西北',\n",
       "    'distance': '129.943',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '530435.909488',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'adcode': '440117',\n",
       "    'name': '广州南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '广州南方学院',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'distance': '470.34',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFK8J7XY',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.233244',\n",
       "    'name': '广州南方学院(东南门)',\n",
       "    'location': '113.678689,23.628304',\n",
       "    'distance': '44.279',\n",
       "    'tel': [],\n",
       "    'type': '通行设施;临街院门;临街院门'},\n",
       "   {'id': 'B0FFHRJDM9',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '中大南方学院南门1号',\n",
       "    'poiweight': '0.256152',\n",
       "    'name': '中南公寓',\n",
       "    'location': '113.680340,23.627566',\n",
       "    'distance': '231.223',\n",
       "    'tel': '13711245345',\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0H0M9NO43',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.292147',\n",
       "    'name': '广州南方学院南方湖观景台',\n",
       "    'location': '113.679464,23.630429',\n",
       "    'distance': '252.022',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;观景点'},\n",
       "   {'id': 'B0FFHC4XU0',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号',\n",
       "    'poiweight': '0.191595',\n",
       "    'name': '广州南方学院学术交流中心',\n",
       "    'location': '113.680066,23.630242',\n",
       "    'distance': '270.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;会展中心;会展中心'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25号',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '298.093',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFG4TAF2',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "    'poiweight': '0.237309',\n",
       "    'name': '广州南方公寓',\n",
       "    'location': '113.678983,23.627778',\n",
       "    'distance': '102.617',\n",
       "    'tel': '13622768437',\n",
       "    'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "   {'id': 'B0FFKP7GY5',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.218221',\n",
       "    'name': '广州南方学院3号实验楼',\n",
       "    'location': '113.678650,23.630612',\n",
       "    'distance': '244.566',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0GKYRKNUA',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "    'poiweight': '0.209893',\n",
       "    'name': '乐妍茶(中大店)',\n",
       "    'location': '113.680097,23.627643',\n",
       "    'distance': '205.173',\n",
       "    'tel': '18028862548',\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0H33OZ7BU',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.191148',\n",
       "    'name': '广州南方学院学术报告厅',\n",
       "    'location': '113.678698,23.631219',\n",
       "    'distance': '312.056',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0JRKNVEFY',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "    'poiweight': '0.209894',\n",
       "    'name': '喜茶(广州南方学院店)',\n",
       "    'location': '113.679905,23.630533',\n",
       "    'distance': '285.72',\n",
       "    'tel': [],\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0HGD588HJ',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院4号教学楼',\n",
       "    'location': '113.677461,23.630578',\n",
       "    'distance': '252.08',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0H1XKYTYG',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.198742',\n",
       "    'name': '广州南方学院西区篮球场',\n",
       "    'location': '113.677741,23.629552',\n",
       "    'distance': '135.401',\n",
       "    'tel': [],\n",
       "    'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "   {'id': 'B0HGDU76L2',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院2号实验楼',\n",
       "    'location': '113.678327,23.630969',\n",
       "    'distance': '281.377',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0IB2GMPW4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "    'poiweight': '0.218331',\n",
       "    'name': '古茗(南方学院店)',\n",
       "    'location': '113.680105,23.630681',\n",
       "    'distance': '311.024',\n",
       "    'tel': '13717659301;18027267535',\n",
       "    'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "   {'id': 'B0I12780ZU',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '内部地面停车场',\n",
       "    'poiweight': '0.203102',\n",
       "    'name': '内部地面停车场(出入口)',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;停车场出入口'},\n",
       "   {'id': 'B0I1276BCM',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.257239',\n",
       "    'name': '内部地面停车场',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;专用停车场'},\n",
       "   {'id': 'B0H25SMRKP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.263595',\n",
       "    'name': '广州南方学院大礼堂',\n",
       "    'location': '113.680076,23.631502',\n",
       "    'distance': '386.65',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'BV11417822',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从15路从20路',\n",
       "    'poiweight': '0.400088',\n",
       "    'name': '南方学院后门总站(公交站)',\n",
       "    'location': '113.679280,23.627201',\n",
       "    'distance': '171.243',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "   {'id': 'B0FFK0MZII',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "    'poiweight': '0.10175',\n",
       "    'name': '街电(尚千谷中大南方店)',\n",
       "    'location': '113.680254,23.627804',\n",
       "    'distance': '213.132',\n",
       "    'tel': [],\n",
       "    'type': '生活服务;共享设备;充电宝'},\n",
       "   {'id': 'B0HRV1D5FP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.191158',\n",
       "    'name': '广州南方学院博物馆',\n",
       "    'location': '113.679624,23.631631',\n",
       "    'distance': '380.463',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;博物馆;博物馆'},\n",
       "   {'id': 'B0FFKMSV6B',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.232574',\n",
       "    'name': '广州南方学院西学楼2号楼',\n",
       "    'location': '113.675891,23.630025',\n",
       "    'distance': '300.564',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路与中山路交叉口南340米',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '393.93',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0HGDU99RM',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院内',\n",
       "    'poiweight': '0.257947',\n",
       "    'name': '广州南方学院图书馆',\n",
       "    'location': '113.679303,23.632322',\n",
       "    'distance': '444.196',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0HGDU92JD',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院1号教学楼',\n",
       "    'location': '113.676968,23.631720',\n",
       "    'distance': '388.57',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '378.102',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0H1YMW8PH',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "    'poiweight': '0.214311',\n",
       "    'name': '肯德基(从化南方学院店)',\n",
       "    'location': '113.676031,23.631594',\n",
       "    'distance': '419.018',\n",
       "    'tel': '4009200715',\n",
       "    'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "   {'id': 'B0HGD592BJ',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院综合楼',\n",
       "    'location': '113.680109,23.631605',\n",
       "    'distance': '398.334',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0HGD58NF8',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "    'poiweight': '0.191229',\n",
       "    'name': '广州南方学院达人书院',\n",
       "    'location': '113.679041,23.632392',\n",
       "    'distance': '446.366',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0JBGSFI8C',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.115716',\n",
       "    'name': '广州南方学院西学楼1号楼',\n",
       "    'location': '113.675570,23.630596',\n",
       "    'distance': '365.742',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "4a22a941",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['status', 'regeocode', 'info', 'infocode'])"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 1.key有哪些\n",
    "geo_nfu.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "9ae0da0a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'1'"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['status']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "be339185",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'OK'"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['info']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "0d6dae5f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'10000'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['infocode']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "7135ac1f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'roads': [{'id': '020F49F0050461206',\n",
       "   'location': '113.678,23.6284',\n",
       "   'direction': '北',\n",
       "   'name': '博学路',\n",
       "   'distance': '7.63232'},\n",
       "  {'id': '020F49F0050462229',\n",
       "   'location': '113.679,23.6245',\n",
       "   'direction': '北',\n",
       "   'name': '老虎形街',\n",
       "   'distance': '445.159'},\n",
       "  {'id': '020F49F005046601453',\n",
       "   'location': '113.677,23.6347',\n",
       "   'direction': '南',\n",
       "   'name': '中山路',\n",
       "   'distance': '712.706'}],\n",
       " 'roadinters': [{'second_name': '中山路',\n",
       "   'first_id': '020F49F0050461206',\n",
       "   'second_id': '020F49F005046601453',\n",
       "   'location': '113.676745,23.634493',\n",
       "   'distance': '691.177',\n",
       "   'first_name': '博学路',\n",
       "   'direction': '南'}],\n",
       " 'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       " 'addressComponent': {'city': '广州市',\n",
       "  'province': '广东省',\n",
       "  'adcode': '440117',\n",
       "  'district': '从化区',\n",
       "  'towncode': '440117100000',\n",
       "  'streetNumber': {'number': '24号',\n",
       "   'location': '113.677267,23.629149',\n",
       "   'direction': '西北',\n",
       "   'distance': '129.943',\n",
       "   'street': '博学路'},\n",
       "  'country': '中国',\n",
       "  'township': '温泉镇',\n",
       "  'businessAreas': [[]],\n",
       "  'building': {'name': [], 'type': []},\n",
       "  'neighborhood': {'name': [], 'type': []},\n",
       "  'citycode': '020'},\n",
       " 'aois': [{'area': '530435.909488',\n",
       "   'type': '141201',\n",
       "   'id': 'B00140MR9A',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'adcode': '440117',\n",
       "   'name': '广州南方学院',\n",
       "   'distance': '0'}],\n",
       " 'pois': [{'id': 'B00140MR9A',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.450402',\n",
       "   'name': '广州南方学院',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'distance': '470.34',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFK8J7XY',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.233244',\n",
       "   'name': '广州南方学院(东南门)',\n",
       "   'location': '113.678689,23.628304',\n",
       "   'distance': '44.279',\n",
       "   'tel': [],\n",
       "   'type': '通行设施;临街院门;临街院门'},\n",
       "  {'id': 'B0FFHRJDM9',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '中大南方学院南门1号',\n",
       "   'poiweight': '0.256152',\n",
       "   'name': '中南公寓',\n",
       "   'location': '113.680340,23.627566',\n",
       "   'distance': '231.223',\n",
       "   'tel': '13711245345',\n",
       "   'type': '商务住宅;住宅区;住宅小区'},\n",
       "  {'id': 'B0H0M9NO43',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.292147',\n",
       "   'name': '广州南方学院南方湖观景台',\n",
       "   'location': '113.679464,23.630429',\n",
       "   'distance': '252.022',\n",
       "   'tel': [],\n",
       "   'type': '风景名胜;风景名胜;观景点'},\n",
       "  {'id': 'B0FFHC4XU0',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道886号',\n",
       "   'poiweight': '0.191595',\n",
       "   'name': '广州南方学院学术交流中心',\n",
       "   'location': '113.680066,23.630242',\n",
       "   'distance': '270.76',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;会展中心;会展中心'},\n",
       "  {'id': 'B0FFKP838K',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路25号',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼3号(外国语学院)',\n",
       "   'location': '113.677247,23.630947',\n",
       "   'distance': '298.093',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFG4TAF2',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "   'poiweight': '0.237309',\n",
       "   'name': '广州南方公寓',\n",
       "   'location': '113.678983,23.627778',\n",
       "   'distance': '102.617',\n",
       "   'tel': '13622768437',\n",
       "   'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "  {'id': 'B0FFKP7GY5',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.218221',\n",
       "   'name': '广州南方学院3号实验楼',\n",
       "   'location': '113.678650,23.630612',\n",
       "   'distance': '244.566',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0GKYRKNUA',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "   'poiweight': '0.209893',\n",
       "   'name': '乐妍茶(中大店)',\n",
       "   'location': '113.680097,23.627643',\n",
       "   'distance': '205.173',\n",
       "   'tel': '18028862548',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0H33OZ7BU',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.191148',\n",
       "   'name': '广州南方学院学术报告厅',\n",
       "   'location': '113.678698,23.631219',\n",
       "   'distance': '312.056',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0JRKNVEFY',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "   'poiweight': '0.209894',\n",
       "   'name': '喜茶(广州南方学院店)',\n",
       "   'location': '113.679905,23.630533',\n",
       "   'distance': '285.72',\n",
       "   'tel': [],\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0HGD588HJ',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院4号教学楼',\n",
       "   'location': '113.677461,23.630578',\n",
       "   'distance': '252.08',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0H1XKYTYG',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.198742',\n",
       "   'name': '广州南方学院西区篮球场',\n",
       "   'location': '113.677741,23.629552',\n",
       "   'distance': '135.401',\n",
       "   'tel': [],\n",
       "   'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "  {'id': 'B0HGDU76L2',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院2号实验楼',\n",
       "   'location': '113.678327,23.630969',\n",
       "   'distance': '281.377',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0IB2GMPW4',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "   'poiweight': '0.218331',\n",
       "   'name': '古茗(南方学院店)',\n",
       "   'location': '113.680105,23.630681',\n",
       "   'distance': '311.024',\n",
       "   'tel': '13717659301;18027267535',\n",
       "   'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "  {'id': 'B0I12780ZU',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '内部地面停车场',\n",
       "   'poiweight': '0.203102',\n",
       "   'name': '内部地面停车场(出入口)',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;停车场出入口'},\n",
       "  {'id': 'B0I1276BCM',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': [],\n",
       "   'poiweight': '0.257239',\n",
       "   'name': '内部地面停车场',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;专用停车场'},\n",
       "  {'id': 'B0H25SMRKP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.263595',\n",
       "   'name': '广州南方学院大礼堂',\n",
       "   'location': '113.680076,23.631502',\n",
       "   'distance': '386.65',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'BV11417822',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '从15路从20路',\n",
       "   'poiweight': '0.400088',\n",
       "   'name': '南方学院后门总站(公交站)',\n",
       "   'location': '113.679280,23.627201',\n",
       "   'distance': '171.243',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "  {'id': 'B0FFK0MZII',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "   'poiweight': '0.10175',\n",
       "   'name': '街电(尚千谷中大南方店)',\n",
       "   'location': '113.680254,23.627804',\n",
       "   'distance': '213.132',\n",
       "   'tel': [],\n",
       "   'type': '生活服务;共享设备;充电宝'},\n",
       "  {'id': 'B0HRV1D5FP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.191158',\n",
       "   'name': '广州南方学院博物馆',\n",
       "   'location': '113.679624,23.631631',\n",
       "   'distance': '380.463',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;博物馆;博物馆'},\n",
       "  {'id': 'B0FFKMSV6B',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.232574',\n",
       "   'name': '广州南方学院西学楼2号楼',\n",
       "   'location': '113.675891,23.630025',\n",
       "   'distance': '300.564',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFKP81F0',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路与中山路交叉口南340米',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼1号(文学与传媒学院)',\n",
       "   'location': '113.676866,23.631736',\n",
       "   'distance': '393.93',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0HGDU99RM',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院内',\n",
       "   'poiweight': '0.257947',\n",
       "   'name': '广州南方学院图书馆',\n",
       "   'location': '113.679303,23.632322',\n",
       "   'distance': '444.196',\n",
       "   'tel': '020-61787368;020-61787371',\n",
       "   'type': '科教文化服务;图书馆;图书馆'},\n",
       "  {'id': 'B0HGDU92JD',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院1号教学楼',\n",
       "   'location': '113.676968,23.631720',\n",
       "   'distance': '388.57',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFH6K3U9',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "   'poiweight': '0.254885',\n",
       "   'name': '广州中大南方招待所',\n",
       "   'location': '113.676330,23.631332',\n",
       "   'distance': '378.102',\n",
       "   'tel': '020-61787222',\n",
       "   'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "  {'id': 'B0H1YMW8PH',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "   'poiweight': '0.214311',\n",
       "   'name': '肯德基(从化南方学院店)',\n",
       "   'location': '113.676031,23.631594',\n",
       "   'distance': '419.018',\n",
       "   'tel': '4009200715',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "  {'id': 'B0HGD592BJ',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院综合楼',\n",
       "   'location': '113.680109,23.631605',\n",
       "   'distance': '398.334',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0HGD58NF8',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "   'poiweight': '0.191229',\n",
       "   'name': '广州南方学院达人书院',\n",
       "   'location': '113.679041,23.632392',\n",
       "   'distance': '446.366',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0JBGSFI8C',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.115716',\n",
       "   'name': '广州南方学院西学楼1号楼',\n",
       "   'location': '113.675570,23.630596',\n",
       "   'distance': '365.742',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'}]}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['regeocode'] #地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "a2a05e3f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['roads', 'roadinters', 'formatted_address', 'addressComponent', 'aois', 'pois'])"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['regeocode'] .keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "d3a4e865",
   "metadata": {},
   "outputs": [],
   "source": [
    "regeocode_data = geo_nfu['regeocode'] "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "09f99b1e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'id': '020F49F0050461206',\n",
       "  'location': '113.678,23.6284',\n",
       "  'direction': '北',\n",
       "  'name': '博学路',\n",
       "  'distance': '7.63232'},\n",
       " {'id': '020F49F0050462229',\n",
       "  'location': '113.679,23.6245',\n",
       "  'direction': '北',\n",
       "  'name': '老虎形街',\n",
       "  'distance': '445.159'},\n",
       " {'id': '020F49F005046601453',\n",
       "  'location': '113.677,23.6347',\n",
       "  'direction': '南',\n",
       "  'name': '中山路',\n",
       "  'distance': '712.706'}]"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['roads']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "e9ade82b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['roads', 'roadinters', 'formatted_address', 'addressComponent', 'aois', 'pois'])"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "b8b03a4a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'second_name': '中山路',\n",
       "  'first_id': '020F49F0050461206',\n",
       "  'second_id': '020F49F005046601453',\n",
       "  'location': '113.676745,23.634493',\n",
       "  'distance': '691.177',\n",
       "  'first_name': '博学路',\n",
       "  'direction': '南'}]"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['roadinters']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "6aa0eab6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'id': 'B00140MR9A',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.450402',\n",
       "  'name': '广州南方学院',\n",
       "  'location': '113.679240,23.632576',\n",
       "  'distance': '470.34',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0FFK8J7XY',\n",
       "  'direction': '东',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.233244',\n",
       "  'name': '广州南方学院(东南门)',\n",
       "  'location': '113.678689,23.628304',\n",
       "  'distance': '44.279',\n",
       "  'tel': [],\n",
       "  'type': '通行设施;临街院门;临街院门'},\n",
       " {'id': 'B0FFHRJDM9',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '中大南方学院南门1号',\n",
       "  'poiweight': '0.256152',\n",
       "  'name': '中南公寓',\n",
       "  'location': '113.680340,23.627566',\n",
       "  'distance': '231.223',\n",
       "  'tel': '13711245345',\n",
       "  'type': '商务住宅;住宅区;住宅小区'},\n",
       " {'id': 'B0H0M9NO43',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路广州南方学院',\n",
       "  'poiweight': '0.292147',\n",
       "  'name': '广州南方学院南方湖观景台',\n",
       "  'location': '113.679464,23.630429',\n",
       "  'distance': '252.022',\n",
       "  'tel': [],\n",
       "  'type': '风景名胜;风景名胜;观景点'},\n",
       " {'id': 'B0FFHC4XU0',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道886号',\n",
       "  'poiweight': '0.191595',\n",
       "  'name': '广州南方学院学术交流中心',\n",
       "  'location': '113.680066,23.630242',\n",
       "  'distance': '270.76',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;会展中心;会展中心'},\n",
       " {'id': 'B0FFKP838K',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路25号',\n",
       "  'poiweight': '0.191742',\n",
       "  'name': '教学楼3号(外国语学院)',\n",
       "  'location': '113.677247,23.630947',\n",
       "  'distance': '298.093',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0FFG4TAF2',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "  'poiweight': '0.237309',\n",
       "  'name': '广州南方公寓',\n",
       "  'location': '113.678983,23.627778',\n",
       "  'distance': '102.617',\n",
       "  'tel': '13622768437',\n",
       "  'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       " {'id': 'B0FFKP7GY5',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.218221',\n",
       "  'name': '广州南方学院3号实验楼',\n",
       "  'location': '113.678650,23.630612',\n",
       "  'distance': '244.566',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0GKYRKNUA',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "  'poiweight': '0.209893',\n",
       "  'name': '乐妍茶(中大店)',\n",
       "  'location': '113.680097,23.627643',\n",
       "  'distance': '205.173',\n",
       "  'tel': '18028862548',\n",
       "  'type': '餐饮服务;冷饮店;冷饮店'},\n",
       " {'id': 'B0H33OZ7BU',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路广州南方学院',\n",
       "  'poiweight': '0.191148',\n",
       "  'name': '广州南方学院学术报告厅',\n",
       "  'location': '113.678698,23.631219',\n",
       "  'distance': '312.056',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'B0JRKNVEFY',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "  'poiweight': '0.209894',\n",
       "  'name': '喜茶(广州南方学院店)',\n",
       "  'location': '113.679905,23.630533',\n",
       "  'distance': '285.72',\n",
       "  'tel': [],\n",
       "  'type': '餐饮服务;冷饮店;冷饮店'},\n",
       " {'id': 'B0HGD588HJ',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院4号教学楼',\n",
       "  'location': '113.677461,23.630578',\n",
       "  'distance': '252.08',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0H1XKYTYG',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.198742',\n",
       "  'name': '广州南方学院西区篮球场',\n",
       "  'location': '113.677741,23.629552',\n",
       "  'distance': '135.401',\n",
       "  'tel': [],\n",
       "  'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       " {'id': 'B0HGDU76L2',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院2号实验楼',\n",
       "  'location': '113.678327,23.630969',\n",
       "  'distance': '281.377',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0IB2GMPW4',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "  'poiweight': '0.218331',\n",
       "  'name': '古茗(南方学院店)',\n",
       "  'location': '113.680105,23.630681',\n",
       "  'distance': '311.024',\n",
       "  'tel': '13717659301;18027267535',\n",
       "  'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       " {'id': 'B0I12780ZU',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '内部地面停车场',\n",
       "  'poiweight': '0.203102',\n",
       "  'name': '内部地面停车场(出入口)',\n",
       "  'location': '113.679445,23.627444',\n",
       "  'distance': '162.262',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;停车场;停车场出入口'},\n",
       " {'id': 'B0I1276BCM',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': [],\n",
       "  'poiweight': '0.257239',\n",
       "  'name': '内部地面停车场',\n",
       "  'location': '113.679445,23.627444',\n",
       "  'distance': '162.262',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;停车场;专用停车场'},\n",
       " {'id': 'B0H25SMRKP',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.263595',\n",
       "  'name': '广州南方学院大礼堂',\n",
       "  'location': '113.680076,23.631502',\n",
       "  'distance': '386.65',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'BV11417822',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '从15路从20路',\n",
       "  'poiweight': '0.400088',\n",
       "  'name': '南方学院后门总站(公交站)',\n",
       "  'location': '113.679280,23.627201',\n",
       "  'distance': '171.243',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;公交车站;公交车站相关'},\n",
       " {'id': 'B0FFK0MZII',\n",
       "  'direction': '东',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "  'poiweight': '0.10175',\n",
       "  'name': '街电(尚千谷中大南方店)',\n",
       "  'location': '113.680254,23.627804',\n",
       "  'distance': '213.132',\n",
       "  'tel': [],\n",
       "  'type': '生活服务;共享设备;充电宝'},\n",
       " {'id': 'B0HRV1D5FP',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.191158',\n",
       "  'name': '广州南方学院博物馆',\n",
       "  'location': '113.679624,23.631631',\n",
       "  'distance': '380.463',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;博物馆;博物馆'},\n",
       " {'id': 'B0FFKMSV6B',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.232574',\n",
       "  'name': '广州南方学院西学楼2号楼',\n",
       "  'location': '113.675891,23.630025',\n",
       "  'distance': '300.564',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0FFKP81F0',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路与中山路交叉口南340米',\n",
       "  'poiweight': '0.191742',\n",
       "  'name': '教学楼1号(文学与传媒学院)',\n",
       "  'location': '113.676866,23.631736',\n",
       "  'distance': '393.93',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'B0HGDU99RM',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院内',\n",
       "  'poiweight': '0.257947',\n",
       "  'name': '广州南方学院图书馆',\n",
       "  'location': '113.679303,23.632322',\n",
       "  'distance': '444.196',\n",
       "  'tel': '020-61787368;020-61787371',\n",
       "  'type': '科教文化服务;图书馆;图书馆'},\n",
       " {'id': 'B0HGDU92JD',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院1号教学楼',\n",
       "  'location': '113.676968,23.631720',\n",
       "  'distance': '388.57',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0FFH6K3U9',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "  'poiweight': '0.254885',\n",
       "  'name': '广州中大南方招待所',\n",
       "  'location': '113.676330,23.631332',\n",
       "  'distance': '378.102',\n",
       "  'tel': '020-61787222',\n",
       "  'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       " {'id': 'B0H1YMW8PH',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "  'poiweight': '0.214311',\n",
       "  'name': '肯德基(从化南方学院店)',\n",
       "  'location': '113.676031,23.631594',\n",
       "  'distance': '419.018',\n",
       "  'tel': '4009200715',\n",
       "  'type': '餐饮服务;快餐厅;快餐厅'},\n",
       " {'id': 'B0HGD592BJ',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院综合楼',\n",
       "  'location': '113.680109,23.631605',\n",
       "  'distance': '398.334',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0HGD58NF8',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "  'poiweight': '0.191229',\n",
       "  'name': '广州南方学院达人书院',\n",
       "  'location': '113.679041,23.632392',\n",
       "  'distance': '446.366',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0JBGSFI8C',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.115716',\n",
       "  'name': '广州南方学院西学楼1号楼',\n",
       "  'location': '113.675570,23.630596',\n",
       "  'distance': '365.742',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'}]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "abdcbc1d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B00140MR9A',\n",
       " 'direction': '北',\n",
       " 'businessarea': [],\n",
       " 'address': '温泉大道882号',\n",
       " 'poiweight': '0.450402',\n",
       " 'name': '广州南方学院',\n",
       " 'location': '113.679240,23.632576',\n",
       " 'distance': '470.34',\n",
       " 'tel': [],\n",
       " 'type': '科教文化服务;学校;高等院校'}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "1e140c85",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B0FFK8J7XY',\n",
       " 'direction': '东',\n",
       " 'businessarea': [],\n",
       " 'address': '温泉大道882号广州南方学院',\n",
       " 'poiweight': '0.233244',\n",
       " 'name': '广州南方学院(东南门)',\n",
       " 'location': '113.678689,23.628304',\n",
       " 'distance': '44.279',\n",
       " 'tel': [],\n",
       " 'type': '通行设施;临街院门;临街院门'}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "5b53e6f3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B0FFHRJDM9',\n",
       " 'direction': '东南',\n",
       " 'businessarea': [],\n",
       " 'address': '中大南方学院南门1号',\n",
       " 'poiweight': '0.256152',\n",
       " 'name': '中南公寓',\n",
       " 'location': '113.680340,23.627566',\n",
       " 'distance': '231.223',\n",
       " 'tel': '13711245345',\n",
       " 'type': '商务住宅;住宅区;住宅小区'}"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "fb5dbcf9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "30"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(regeocode_data['pois'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "a52b805a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'id': 'B00140MR9A', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.450402', 'name': '广州南方学院', 'location': '113.679240,23.632576', 'distance': '470.34', 'tel': [], 'type': '科教文化服务;学校;高等院校'}\n",
      "{'id': 'B0FFK8J7XY', 'direction': '东', 'businessarea': [], 'address': '温泉大道882号广州南方学院', 'poiweight': '0.233244', 'name': '广州南方学院(东南门)', 'location': '113.678689,23.628304', 'distance': '44.279', 'tel': [], 'type': '通行设施;临街院门;临街院门'}\n",
      "{'id': 'B0FFHRJDM9', 'direction': '东南', 'businessarea': [], 'address': '中大南方学院南门1号', 'poiweight': '0.256152', 'name': '中南公寓', 'location': '113.680340,23.627566', 'distance': '231.223', 'tel': '13711245345', 'type': '商务住宅;住宅区;住宅小区'}\n",
      "{'id': 'B0H0M9NO43', 'direction': '东北', 'businessarea': [], 'address': '博学路广州南方学院', 'poiweight': '0.292147', 'name': '广州南方学院南方湖观景台', 'location': '113.679464,23.630429', 'distance': '252.022', 'tel': [], 'type': '风景名胜;风景名胜;观景点'}\n",
      "{'id': 'B0FFHC4XU0', 'direction': '东北', 'businessarea': [], 'address': '温泉大道886号', 'poiweight': '0.191595', 'name': '广州南方学院学术交流中心', 'location': '113.680066,23.630242', 'distance': '270.76', 'tel': [], 'type': '科教文化服务;会展中心;会展中心'}\n",
      "{'id': 'B0FFKP838K', 'direction': '北', 'businessarea': [], 'address': '博学路25号', 'poiweight': '0.191742', 'name': '教学楼3号(外国语学院)', 'location': '113.677247,23.630947', 'distance': '298.093', 'tel': [], 'type': '科教文化服务;学校;高等院校'}\n",
      "{'id': 'B0FFG4TAF2', 'direction': '东南', 'businessarea': [], 'address': '温泉镇乌土村松浪队5号(近博学路)', 'poiweight': '0.237309', 'name': '广州南方公寓', 'location': '113.678983,23.627778', 'distance': '102.617', 'tel': '13622768437', 'type': '住宿服务;旅馆招待所;旅馆招待所'}\n",
      "{'id': 'B0FFKP7GY5', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.218221', 'name': '广州南方学院3号实验楼', 'location': '113.678650,23.630612', 'distance': '244.566', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0GKYRKNUA', 'direction': '东南', 'businessarea': [], 'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)', 'poiweight': '0.209893', 'name': '乐妍茶(中大店)', 'location': '113.680097,23.627643', 'distance': '205.173', 'tel': '18028862548', 'type': '餐饮服务;冷饮店;冷饮店'}\n",
      "{'id': 'B0H33OZ7BU', 'direction': '北', 'businessarea': [], 'address': '博学路广州南方学院', 'poiweight': '0.191148', 'name': '广州南方学院学术报告厅', 'location': '113.678698,23.631219', 'distance': '312.056', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}\n",
      "{'id': 'B0JRKNVEFY', 'direction': '东北', 'businessarea': [], 'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号', 'poiweight': '0.209894', 'name': '喜茶(广州南方学院店)', 'location': '113.679905,23.630533', 'distance': '285.72', 'tel': [], 'type': '餐饮服务;冷饮店;冷饮店'}\n",
      "{'id': 'B0HGD588HJ', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.221662', 'name': '广州南方学院4号教学楼', 'location': '113.677461,23.630578', 'distance': '252.08', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0H1XKYTYG', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882号广州南方学院', 'poiweight': '0.198742', 'name': '广州南方学院西区篮球场', 'location': '113.677741,23.629552', 'distance': '135.401', 'tel': [], 'type': '体育休闲服务;运动场馆;篮球场馆'}\n",
      "{'id': 'B0HGDU76L2', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.221662', 'name': '广州南方学院2号实验楼', 'location': '113.678327,23.630969', 'distance': '281.377', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0IB2GMPW4', 'direction': '东北', 'businessarea': [], 'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005', 'poiweight': '0.218331', 'name': '古茗(南方学院店)', 'location': '113.680105,23.630681', 'distance': '311.024', 'tel': '13717659301;18027267535', 'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'}\n",
      "{'id': 'B0I12780ZU', 'direction': '东南', 'businessarea': [], 'address': '内部地面停车场', 'poiweight': '0.203102', 'name': '内部地面停车场(出入口)', 'location': '113.679445,23.627444', 'distance': '162.262', 'tel': [], 'type': '交通设施服务;停车场;停车场出入口'}\n",
      "{'id': 'B0I1276BCM', 'direction': '东南', 'businessarea': [], 'address': [], 'poiweight': '0.257239', 'name': '内部地面停车场', 'location': '113.679445,23.627444', 'distance': '162.262', 'tel': [], 'type': '交通设施服务;停车场;专用停车场'}\n",
      "{'id': 'B0H25SMRKP', 'direction': '东北', 'businessarea': [], 'address': '温泉大道882号广州南方学院', 'poiweight': '0.263595', 'name': '广州南方学院大礼堂', 'location': '113.680076,23.631502', 'distance': '386.65', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}\n",
      "{'id': 'BV11417822', 'direction': '东南', 'businessarea': [], 'address': '从15路从20路', 'poiweight': '0.400088', 'name': '南方学院后门总站(公交站)', 'location': '113.679280,23.627201', 'distance': '171.243', 'tel': [], 'type': '交通设施服务;公交车站;公交车站相关'}\n",
      "{'id': 'B0FFK0MZII', 'direction': '东', 'businessarea': [], 'address': '温泉大道882号广州南方学院后门润泰超市一楼', 'poiweight': '0.10175', 'name': '街电(尚千谷中大南方店)', 'location': '113.680254,23.627804', 'distance': '213.132', 'tel': [], 'type': '生活服务;共享设备;充电宝'}\n",
      "{'id': 'B0HRV1D5FP', 'direction': '东北', 'businessarea': [], 'address': '温泉大道882号广州南方学院', 'poiweight': '0.191158', 'name': '广州南方学院博物馆', 'location': '113.679624,23.631631', 'distance': '380.463', 'tel': [], 'type': '科教文化服务;博物馆;博物馆'}\n",
      "{'id': 'B0FFKMSV6B', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.232574', 'name': '广州南方学院西学楼2号楼', 'location': '113.675891,23.630025', 'distance': '300.564', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0FFKP81F0', 'direction': '西北', 'businessarea': [], 'address': '博学路与中山路交叉口南340米', 'poiweight': '0.191742', 'name': '教学楼1号(文学与传媒学院)', 'location': '113.676866,23.631736', 'distance': '393.93', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}\n",
      "{'id': 'B0HGDU99RM', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号广州南方学院内', 'poiweight': '0.257947', 'name': '广州南方学院图书馆', 'location': '113.679303,23.632322', 'distance': '444.196', 'tel': '020-61787368;020-61787371', 'type': '科教文化服务;图书馆;图书馆'}\n",
      "{'id': 'B0HGDU92JD', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.221662', 'name': '广州南方学院1号教学楼', 'location': '113.676968,23.631720', 'distance': '388.57', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0FFH6K3U9', 'direction': '西北', 'businessarea': [], 'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层', 'poiweight': '0.254885', 'name': '广州中大南方招待所', 'location': '113.676330,23.631332', 'distance': '378.102', 'tel': '020-61787222', 'type': '住宿服务;住宿服务相关;住宿服务相关'}\n",
      "{'id': 'B0H1YMW8PH', 'direction': '西北', 'businessarea': [], 'address': '温泉镇中山大学南方学院博学路6号西区食堂首层', 'poiweight': '0.214311', 'name': '肯德基(从化南方学院店)', 'location': '113.676031,23.631594', 'distance': '419.018', 'tel': '4009200715', 'type': '餐饮服务;快餐厅;快餐厅'}\n",
      "{'id': 'B0HGD592BJ', 'direction': '东北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.221662', 'name': '广州南方学院综合楼', 'location': '113.680109,23.631605', 'distance': '398.334', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n",
      "{'id': 'B0HGD58NF8', 'direction': '北', 'businessarea': [], 'address': '温泉大道882号广州南方学院新综合楼2层', 'poiweight': '0.191229', 'name': '广州南方学院达人书院', 'location': '113.679041,23.632392', 'distance': '446.366', 'tel': [], 'type': '科教文化服务;学校;高等院校'}\n",
      "{'id': 'B0JBGSFI8C', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.115716', 'name': '广州南方学院西学楼1号楼', 'location': '113.675570,23.630596', 'distance': '365.742', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}\n"
     ]
    }
   ],
   "source": [
    "for i in regeocode_data['pois']:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "d99f19e3",
   "metadata": {},
   "outputs": [],
   "source": [
    "#3. name有哪些？\n",
    "name = []\n",
    "for i in regeocode_data['pois']:\n",
    "   # print(i['name'])\n",
    "    name.append(i['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "469147db",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广州南方学院',\n",
       " '广州南方学院(东南门)',\n",
       " '中南公寓',\n",
       " '广州南方学院南方湖观景台',\n",
       " '广州南方学院学术交流中心',\n",
       " '教学楼3号(外国语学院)',\n",
       " '广州南方公寓',\n",
       " '广州南方学院3号实验楼',\n",
       " '乐妍茶(中大店)',\n",
       " '广州南方学院学术报告厅',\n",
       " '喜茶(广州南方学院店)',\n",
       " '广州南方学院4号教学楼',\n",
       " '广州南方学院西区篮球场',\n",
       " '广州南方学院2号实验楼',\n",
       " '古茗(南方学院店)',\n",
       " '内部地面停车场(出入口)',\n",
       " '内部地面停车场',\n",
       " '广州南方学院大礼堂',\n",
       " '南方学院后门总站(公交站)',\n",
       " '街电(尚千谷中大南方店)',\n",
       " '广州南方学院博物馆',\n",
       " '广州南方学院西学楼2号楼',\n",
       " '教学楼1号(文学与传媒学院)',\n",
       " '广州南方学院图书馆',\n",
       " '广州南方学院1号教学楼',\n",
       " '广州中大南方招待所',\n",
       " '肯德基(从化南方学院店)',\n",
       " '广州南方学院综合楼',\n",
       " '广州南方学院达人书院',\n",
       " '广州南方学院西学楼1号楼']"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "3944a73a",
   "metadata": {},
   "outputs": [],
   "source": [
    "#4. direction为北的数据\n",
    "name_朝北 = []\n",
    "for i in regeocode_data['pois']:\n",
    "    if i ['direction'] == '北':\n",
    "        name_朝北.append(i['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "de00e794",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广州南方学院',\n",
       " '教学楼3号(外国语学院)',\n",
       " '广州南方学院3号实验楼',\n",
       " '广州南方学院学术报告厅',\n",
       " '广州南方学院4号教学楼',\n",
       " '广州南方学院2号实验楼',\n",
       " '广州南方学院图书馆',\n",
       " '广州南方学院1号教学楼',\n",
       " '广州南方学院达人书院']"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_朝北"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "99b054cf",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 5. 有tel 的建筑（name）有哪些？\n",
    "for i in regeocode_data['pois']:\n",
    "    #print(i['tel'])\n",
    "    if type (i['tel'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "43e86613",
   "metadata": {},
   "outputs": [],
   "source": [
    "# type 为“餐饮服务”有哪些？\n",
    "for i in regeocode_data['pois']:\n",
    "    if '餐饮'in i['type']:\n",
    "        print(i['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3cc1a24c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# direction 为北的name 有哪些？\n",
    "for i in regeocode_data['pois']:\n",
    "    if float "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
